package com.xd.center.http.vo;

import com.xd.center.http.builder.HttpContract;
import lombok.Data;

import java.lang.annotation.Annotation;
import java.util.function.Predicate;

@Data
public class AnnotationProcessorVo {

  public AnnotationProcessorVo(Predicate predicate, HttpContract.AnnotationProcessor processor) {
    this.predicate = predicate;
    this.processor = processor;
  }


  public AnnotationProcessorVo(Predicate predicate, HttpContract.ParamAnnotationProcessor paramProcessor) {
    this.predicate = predicate;
    this.paramProcessor = paramProcessor;
  }

  private Predicate<Annotation> predicate;
  private HttpContract.AnnotationProcessor<Annotation> processor;
  private HttpContract.ParamAnnotationProcessor<Annotation> paramProcessor;

}
